<?php
/**
 * The main template file.
 *
 * @package WordPress
 * @subpackage urbanmeandering
 */

get_header(); ?>

	<?php $cat = current(get_the_category());
        $args = array(
            'numberposts'     => 5,
    'offset'          => 0,
    'category'        => $cat->slug,
    'orderby'         => 'post_date',
    'order'           => 'DESC',
    'include'         => '',
    'exclude'         =>'' ,
    'meta_key'        => '',
    'meta_value'      => '',
    'post_type'       => 'post',
    'post_mime_type'  => '',
    'post_parent'     => '',
    'post_status'     => 'publish',
    'suppress_filters' => true
        );
        $posts = get_posts($args);
        
       
  ?>
	<div id="main" class="group">
		
		<?php um_breadcrumbs(); ?>
		
		<section id="food-posts" class="archive posts-list-overview content">
			<h1 class="page-label"><span>Food</span></h1>
			<div>
         
				<?php foreach( $posts as $post ): ?>
				<article>
            <a href="<?php echo get_permalink($post->ID);?>"><?php echo get_the_post_thumbnail($post->ID);  ?></a>
					<div class="text">
              <a href="#"><h2 class="entry-title"><?php echo $post->post_title; ?></h2></a>
						<p class="entry-desc"><time datetime="2012-08-08"><?php echo date(get_option('date_format'),strtotime($post->post_date)); ?></time> - <?php echo $post->post_excerpt; ?>&hellip;</p>
					</div>
				</article>
				<?php endforeach; ?>
			</div>
		</section>
			
    <?php get_sidebar(); ?>
		
		
	</div>
	
<?php get_footer(); ?>